package com.liuliu.datapooldemo.service.impl;

import com.liuliu.datapooldemo.entity.DataPoolEntity;
import com.liuliu.datapooldemo.entity.OaDataEntity;
import com.liuliu.datapooldemo.entity.XinxinDataEntity;
import com.liuliu.datapooldemo.mapper.DataPoolMapper;
import com.liuliu.datapooldemo.service.DataPoolService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lwh
 * @description:
 * @date 2024/5/9 15:10
 */
@Service
@Slf4j
public class DataPoolServiceImpl  implements DataPoolService {

    @Autowired
    private DataPoolMapper dataPoolMapper;


    @Override
    public List<DataPoolEntity> getAll() {
        return dataPoolMapper.getAll();
    }

    @Override
    public List<XinxinDataEntity> getAllDmd() {
        return dataPoolMapper.getAllDmd();
    }

    @Override
    public List<XinxinDataEntity> getAllDwd() {
        return dataPoolMapper.getAllDwd();
    }

    @Override
    public List<XinxinDataEntity> getAllWfl() {
        return dataPoolMapper.getAllWfl();
    }

    @Override
    public List<XinxinDataEntity> getAllWfl1() {
        return dataPoolMapper.getAllWfl1();
    }


    @Override
    public List<XinxinDataEntity> getAllWfl2() {
        return dataPoolMapper.getAllWfl2();
    }

    @Override
    public List<XinxinDataEntity> getAllSy() {
        return dataPoolMapper.getAllSy();
    }

    @Override
    public void insertXinDataList(List<XinxinDataEntity> xinxinDataEntityList) {
        dataPoolMapper.insertXinDataList(xinxinDataEntityList);
    }

    @Override
    public XinxinDataEntity getSelectSy(XinxinDataEntity xinxinDataEntity) {
        return dataPoolMapper.getSelectSy(xinxinDataEntity);
    }

    @Override
    public void deleteSy(String id) {
        dataPoolMapper.deleteSy(id);
    }

    @Override
    public void updateDmd(String id, String one, String two) {
        dataPoolMapper.updateDmd(id,one,two);
    }

    @Override
    public void updateDwd(String id, String one, String two) {
        dataPoolMapper.updateDwd(id,one,two);

    }

    @Override
    public void updateWfl(String id, String one, String two) {
        dataPoolMapper.updateWfl(id,one,two);

    }

    @Override
    public void insertXinDataList22(List<XinxinDataEntity> xinxinDataEntityList) {
        dataPoolMapper.insertXinDataList22(xinxinDataEntityList);
    }

    @Override
    public void insertXinDataListAll(List<XinxinDataEntity> xinxinDataEntityList) {
        dataPoolMapper.insertXinDataListAll(xinxinDataEntityList);
    }

    @Override
    public List<OaDataEntity> getAllSyOa() {
        return dataPoolMapper.getAllSyOa();
    }

    @Override
    public void updateOA(String id) {
         dataPoolMapper.updateOA(id);
    }

    @Override
    public List<OaDataEntity> getAllSyTask() {
        return dataPoolMapper.getAllSyTask();
    }

    @Override
    public void updateTask(String id) {
        dataPoolMapper.updateTask(id);
    }
}
